package com.wc5818.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wc5818.entity.WC_FK_CustInfo; 
import com.wc5818.mapper.WC_fk_CustInfoMapper;
@Service
public class WC_FK_CustInfoService implements WC_fk_CustInfoMapper{

	@Autowired
	WC_fk_CustInfoMapper custinfoMapper;

	
	/***
	 * 获取CustInfoEntity所有数据
	 * 
	 * @return
	 */
	public List<WC_FK_CustInfo> getAllWC_FK_CustInfo(){
		
		
		return custinfoMapper.getAllWC_FK_CustInfo();
	}
	
	/***
	 * 根据指定条件查询
	 * 
	 * @return orderid
	 * 根据输入的姓名，手机号，模糊查询数据
	 */
	public List<WC_FK_CustInfo> getAllCustInfoForWhereLike(String orderid){
		
		return custinfoMapper.getAllCustInfoForWhereLike(orderid);
	}
	
	/***
	 * 保存数据 
	 * @param info
	 * @return
	 */
	public int saveCustInfo(WC_FK_CustInfo info) {
		
		
		return custinfoMapper.saveCustInfo(info);
		
		 
	}
	
 
}
